const Controller = require('egg').Controller;


class UserController extends Controller {
    // 登录
    async index() {
        const { ctx } = this;
        var data = await ctx.service.user.index(ctx.query);
        const { code, msg, res } = data;
        console.log(res, msg, code);
        ctx.body = {
            code,
            msg,
            res,
        }
    };
}

module.exports = UserController;